import { createApp } from 'vue'
import {createPinia} from "pinia"
// import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'virtual:windi.css'
import App from './App.vue'
import router from "./router/index.js";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from "axios";

axios.defaults.baseURL = 'http://localhost:8080'
const pinia = createPinia()
const app = createApp(App).use(router).use(pinia)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')